//
//  UICollectionView+Extension.m
//  JKWDTeacher
//
//  Created by 学大教育 on 2022/4/7.
//

#import "UICollectionView+Extension.h"

@implementation UICollectionView (Extension)
/**
 * 刷新某一项
 */
- (void)reloadItemAtIndexPath:(NSIndexPath *)indexPath
{
    [self reloadItemsAtIndexPaths:@[indexPath]];
}

- (void)reloadItem:(NSUInteger)item inSection:(NSUInteger)section
{
    NSIndexPath *indexPath = [NSIndexPath indexPathForItem:item inSection:section];
    [self reloadItemsAtIndexPaths:@[indexPath]];
}
@end
